package com.hejing.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * ClassName: MainOpenFeign80
 * Package: com.hejing.cloud
 * Description:
 *
 * @Author: HeJing
 * @Create: 2024-08-04 8:26
 * @Version: 1.0
 */
@SpringBootApplication
@EnableDiscoveryClient  // 该注解用户向使用consul 为注册中心时注册服务
@EnableFeignClients  // 启用feign客户端，定义服务 + 绑定接口，以声明式的方法优雅而简单的实现服务调用。
public class MainOpenFeign80 {
    public static void main(String[] args) {
        SpringApplication.run(MainOpenFeign80.class, args);
    }
}




















